package kr.hkit.summury_java.erp.dto;

/**
 * 프로그램 설명
 * @Project		: Summary_Java
 * @package		: kr.hkit.summury_java.erp.dto
 * @FileName	: CodeTitle.java
 * @Date  		: 2014. 11. 3.
 * @version  	: 1.0.0
 * @author  	: SeokYoul Choi
 * @Comment  	: 직책클래스
 * @History  	: 생
 *
 */
public class CodeTitle {
	private int titleNo;
	private String titleName;
	/**
	 * @param titleNo
	 * @param titleName
	 */
	public CodeTitle() { }	
	
	public CodeTitle(int titleNo) {
		this.titleNo = titleNo;
	}

	public CodeTitle(int titleNo, String titleName) {
		this.titleNo = titleNo;
		this.titleName = titleName;
	}

	public int getTitleno() {
		return titleNo;
	}

	public void setTitleno(int titleNo) {
		this.titleNo = titleNo;
	}

	public String getTitleName() {
		return titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}

	@Override
	public String toString() {
		return String.format("***** 직급 *****\n 직급번호 = %s\n 직급명 = %s\n", titleNo,
				titleName);
	}

	public String[] toArray() {
		return new String[]{String.valueOf(titleNo), titleName};
	}
	
}
